package com.itkaien.pojo;

import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class Ledger {
    private Integer id;

    private Integer goodsId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Integer changenum;

    private Integer storeId;
    public Ledger() {
    }

    public Ledger(Integer goodsId, Date createTime, Integer changenum, Integer storeId) {
        this.goodsId = goodsId;
        this.createTime = createTime;
        this.changenum = changenum;
        this.storeId = storeId;
    }
}